package panoramic

import (
	"github.com/gin-gonic/gin"
	v1 "tdy-backend/app/panoramic/controller/v1"
)

type ApiWorksRouter struct{}

func (o *ApiWorksRouter) WorksRouter(Router *gin.RouterGroup) {
	api := v1.WorksController{}
	r := Router.Group("V1")
	{
		r.POST("/Works/Commit", api.Commit)
		r.POST("/Works/Edit", api.Edit)
		r.POST("/Works/Delete", api.Delete)
		r.GET("/Works/ListForPage", api.ListForPage)
	}
}
